<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var score = "6";
    var b = "9";
    switch (score) {
        case "10":
            s = '满分';
            break
        case b:
            s = '优秀';
            console.log(s);
            break
        case "8":
            s = '良好'
            console.log(s);
            break;
        case "7":
            s = '一般'
            console.log(s);
            break;

        default :
            s = '不及格';

    }
    console.log(s);
</script>
</body>
</html>